using Sirenix.OdinInspector;

[Buff("属性修饰",2)]
public class AttributeModifyBuff : BuffBase
{
    public override string Label => "属性修饰";

    [ToggleGroup("Enabled")]
    public AttributeType AttributeType;
    [ToggleGroup("Enabled"),LabelText("修饰值")]
    public string ModifyValue;

    [ToggleGroup("Enabled")]
    public ModifyType ModifyType;
}

    [LabelText("属性类型")]
    //[LabelWidth(50)]
public enum AttributeType
{
    [LabelText("（空）")]
    None = 0,

    [LabelText("生命值上限")]
    HealthPointMax = 999,
    [LabelText("生命值")]
    HealthPoint = 1000,
    [LabelText("攻击力")]
    Attack = 1001,
    [LabelText("护甲值")]
    Defense = 1002,
    [LabelText("法术强度")]
    AbilityPower = 1003,
    [LabelText("魔法抗性")]
    SpellResistance = 1004,
    [LabelText("吸血")]
    SuckBlood = 1005,

    [LabelText("暴击概率")]
    CriticalProbability = 2001,
    [LabelText("移动速度")]
    MoveSpeed = 2002,
    [LabelText("攻击速度")]
    AttackSpeed = 2003,

    [LabelText("护盾值")]
    ShieldValue = 3001,

    [LabelText("造成伤害")]
    CauseDamage = 4001,
}

[LabelText("修饰类型")]
public enum ModifyType
{
    Add = 0,
    PercentAdd = 1,
}